Class HeapNodeWT

  • All Implemented Interfaces:
    java.lang.Comparable<HeapNodeWT>

    public class HeapNodeWT
    extends java.lang.Object
    implements java.lang.Comparable<HeapNodeWT>
    Author:
    Cesar Martin
    • Field Detail

      • index1

        private int index1
      • index2

        private int index2
      • sigma

        private double sigma
    • Constructor Detail

      • HeapNodeWT

        public HeapNodeWT​(int ind1,
                          int ind2,
                          double sig)
    • Method Detail

      • getIndex1

        public int getIndex1()
      • getIndex2

        public int getIndex2()
      • setIndex1

        public void setIndex1​(int ind)
      • setIndex2

        public void setIndex2​(int ind)
      • getValue

        public double getValue()
      • setSigma

        public void setSigma​(double nwsig)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(HeapNodeWT that)
        Specified by:
        compareTo in interface java.lang.Comparable<HeapNodeWT>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object